package com.ms.demo.demo2;

public class TestMain {

    public static void main(String[] args) {

        Player kebi = new Player("科比");
        Player yaom = new Player("姚明");

        // 两分球
        TwoPointer twoPointer = new TwoPointer();
        // 三分球
        ThreePointer threePointer = new ThreePointer();

        // 科比投进两分球
        kebi.score(twoPointer);
        kebi.getTotal();
        // 库里投进三分球
        yaom.score(threePointer);
        yaom.getTotal();
        // 刚才库里踩线了，应该是个两分，需要撤销后重新记分
        yaom.undo(threePointer);
        yaom.score(twoPointer);
        yaom.getTotal();

    }
}